2021 Method
Changes 0
M

ElementTransformUtils.CopyElements

Description:
Copies a set of elements from source document to destination document.
Remarks:

Copies are placed at their respective original locations or locations specified by the optional transformation.

This method can be used for copying non-view specific elements only. For copying view-specific elements, use the view-specific form of the CopyElements method.

The destination document can be the same as the source document.

This method performs rehosting of elements where applicable.

Overloads (3):
CopyElements(Document,ICollection[ElementId],Document,Transform,CopyPasteOptions)
public static ICollection<ElementId> CopyElements(
	Document sourceDocument,
	ICollection<ElementId> elementsToCopy,
	Document destinationDocument,
	Transform transform,
	CopyPasteOptions options
)
Return Value ICollection<ElementId> The ids of the newly created copied elements.